package scanner;

import java.util.Scanner;

/**
 * @Author Miku
 * @Create 2021/2/14 21:51
 */
public class Demo02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("使用nextLine方式接收：");

        if (scanner.hasNextLine()) {
            String str = scanner.nextLine();
            System.out.println("输出的内容为：" + str);
        }

        scanner.close();
    }
}
